<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MNNKit: MNNFaceDetection/iOS/MNNFaceDetection/Pods/MNN/MNN.framework/Headers/expr/expr/Expr.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MNNKit
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">MNN Kit SDK</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ff51bd0b7841751e6292791fdaa2b577.html">MNNFaceDetection</a></li><li class="navelem"><a class="el" href="dir_afc4351b0ff58faa23b45bf1feab612f.html">iOS</a></li><li class="navelem"><a class="el" href="dir_3aa9bd88010d07c3276bd22be45efe2a.html">MNNFaceDetection</a></li><li class="navelem"><a class="el" href="dir_2455bb6014d6030fbf6ab7e5d1a85dd5.html">Pods</a></li><li class="navelem"><a class="el" href="dir_fa47a86aecfce62b7301882476bba36d.html">MNN</a></li><li class="navelem"><a class="el" href="dir_b58aff5056364bfb9c8563ac291c455d.html">MNN.framework</a></li><li class="navelem"><a class="el" href="dir_d7ccca72d604790a8d4c14872eb841a0.html">Headers</a></li><li class="navelem"><a class="el" href="dir_a378c7a85f9ffe6bc5867d93d9dc9ba3.html">expr</a></li><li class="navelem"><a class="el" href="dir_0986baab01985d482909d96931a07532.html">expr</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Expr.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="expr_2_expr_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//  Expr.hpp</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//  MNN</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  Created by MNN on 2019/06/10.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//  Copyright © 2018, Alibaba Group Holding Limited</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef Expr_hpp</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#define Expr_hpp</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;MNN/HalideRuntime.h&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;MNN/MNNDefine.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_m_n_n.html">MNN</a> {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">struct </span>OpT;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">struct </span>Op;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">struct </span>NetT;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span>Express {</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">class </span>Variable;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">class </span>Expr;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">   28</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_m_n_n_1_1_express_1_1_executor.html">Executor</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">typedef</span> std::shared_ptr&lt;Expr&gt; <a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="namespace_m_n_n_1_1_express.html#a3c8c8139465203352c6c2ffc5944f1e6">   30</a></span>&#160;<span class="keyword">typedef</span> std::weak_ptr&lt;Expr&gt; <a class="code" href="namespace_m_n_n_1_1_express.html#a3c8c8139465203352c6c2ffc5944f1e6">WeakEXPRP</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="namespace_m_n_n_1_1_express.html#aac9d5f0a7344063d3206a80d5b48af56">   31</a></span>&#160;<span class="keyword">typedef</span> std::vector&lt;int&gt; <a class="code" href="namespace_m_n_n_1_1_express.html#aac9d5f0a7344063d3206a80d5b48af56">INTS</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3caf7cdcc92dac8923b43a5a9e3ca26a765">   32</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3c">Dimensionformat</a> { <a class="code" href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3caf7cdcc92dac8923b43a5a9e3ca26a765">NHWC</a>, <a class="code" href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3cac0fe2ebb36df2d8a26b4e9a285c7b202">NC4HW4</a>, <a class="code" href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3ca43885258fecf8a3ae395776d5b23e278">NCHW</a> };</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">   33</a></span>&#160;<span class="keyword">class </span><a class="code" href="_m_n_n_define_8h.html#a692428e2a0af8ffb79376d223a0695ab">MNN_PUBLIC</a> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a655f4c2112705d0d96e049db4b2614e3">   35</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a655f4c2112705d0d96e049db4b2614e3">VARP</a>() {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="comment">// Do nothing</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    }</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af0b771b67ae09cd790d9b54b76dd1c28">   38</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af0b771b67ae09cd790d9b54b76dd1c28">VARP</a>(std::shared_ptr&lt;Variable&gt; c) {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        mContent = std::move(c);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    }</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af2bd2d64faf19ef3c485761766c99399">   41</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af2bd2d64faf19ef3c485761766c99399">VARP</a>(<a class="code" href="class_m_n_n_1_1_express_1_1_variable.html">Variable</a>* c) {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        mContent.reset(c);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    }</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af995c0ee28d007cd50e927db0f9c7656">   44</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html">Variable</a>* <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af995c0ee28d007cd50e927db0f9c7656">get</a>()<span class="keyword"> const  </span>{</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">return</span> mContent.get();</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    }</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ae198ae95e5aa09c79959aee49265e374">   47</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ae198ae95e5aa09c79959aee49265e374">~ VARP</a>() {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="comment">// Do nothing</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    }</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a178e41f8715faf3c2a71b84e0b3b3f5f">   50</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a178e41f8715faf3c2a71b84e0b3b3f5f">VARP</a>(<span class="keyword">const</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>&amp; var) {</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        mContent = var.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ab3e50e1d0c3438ebdd7547ec5e6513c3">mContent</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    }</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a82e1a8bcf166d3dc69233900b1935f4c">   53</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a82e1a8bcf166d3dc69233900b1935f4c">VARP</a>(<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>&amp;&amp; var) {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        mContent = std::move(var.mContent);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> operator+(<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> var) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> operator-(<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> var) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> operator*(<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> var) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> operator/(<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> var) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> mean(<a class="code" href="namespace_m_n_n_1_1_express.html#aac9d5f0a7344063d3206a80d5b48af56">INTS</a> dims) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> sum(<a class="code" href="namespace_m_n_n_1_1_express.html#aac9d5f0a7344063d3206a80d5b48af56">INTS</a> dims) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a81f81111a22ec4b0527b8ea54cf79691">   63</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a81f81111a22ec4b0527b8ea54cf79691">operator==</a>(<span class="keyword">const</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>&amp; var) {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">return</span> var.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ab3e50e1d0c3438ebdd7547ec5e6513c3">mContent</a> == mContent;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a0a99958eb20c4daf3ca8d431bf25f83b">   66</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a0a99958eb20c4daf3ca8d431bf25f83b">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>&amp; var) {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordflow">return</span> mContent &lt; var.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ab3e50e1d0c3438ebdd7547ec5e6513c3">mContent</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    }</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a6f5e1654bdec45a55ccacf93ee730a68">   69</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a6f5e1654bdec45a55ccacf93ee730a68">operator&lt;=</a>(<span class="keyword">const</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>&amp; var) {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordflow">return</span> mContent &lt;= var.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ab3e50e1d0c3438ebdd7547ec5e6513c3">mContent</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#aeccf9d2e356cce11af54745978672036">   72</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>&amp; <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#aeccf9d2e356cce11af54745978672036">operator=</a>(<span class="keyword">const</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>&amp; var) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        mContent = var.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ab3e50e1d0c3438ebdd7547ec5e6513c3">mContent</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    }</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a7b447d01b1e70a37ea9b91f2113c3e42">   76</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>&amp; <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a7b447d01b1e70a37ea9b91f2113c3e42">operator=</a>(<a class="code" href="class_m_n_n_1_1_express_1_1_variable.html">Variable</a>* var) {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        mContent.reset(var);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    }</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a7e017019fb11c17138944a2ff0b0f4a9">   80</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html">Variable</a>* <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a7e017019fb11c17138944a2ff0b0f4a9">operator-&gt;</a>()<span class="keyword"> const  </span>{</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="keywordflow">return</span> mContent.get();</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    }</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#adb04fbbb9efda7fde86cf7c0ba8f7362">   83</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#adb04fbbb9efda7fde86cf7c0ba8f7362">InputType</a> {</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#adb04fbbb9efda7fde86cf7c0ba8f7362a053d834f96601324dac3e0932c697119">   84</a></span>&#160;        INPUT = 0,</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#adb04fbbb9efda7fde86cf7c0ba8f7362a48ffca659105e48b1f872dd93a4305d1">   85</a></span>&#160;        CONST = 1,</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#adb04fbbb9efda7fde86cf7c0ba8f7362a716c91f741d9b75868022fb9bb925a4f">   86</a></span>&#160;        TRAINABLE = 2,</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    };</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordtype">bool</span> fix(InputType type) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ab3e50e1d0c3438ebdd7547ec5e6513c3">   90</a></span>&#160;    std::shared_ptr&lt;Variable&gt; <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ab3e50e1d0c3438ebdd7547ec5e6513c3">mContent</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;};</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="namespace_m_n_n_1_1_express.html#aeb744f3b45a7111ddea24c129db9d5c6">   92</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespace_m_n_n_1_1_express.html#aeb744f3b45a7111ddea24c129db9d5c6">operator==</a>(<a class="code" href="class_m_n_n_1_1_express_1_1_variable.html">Variable</a>* src, <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> dst) {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordflow">return</span> src == dst.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af995c0ee28d007cd50e927db0f9c7656">get</a>();</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;}</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="namespace_m_n_n_1_1_express.html#a506c42545bdabeb2ffb0654e8d15176a">   95</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespace_m_n_n_1_1_express.html#a506c42545bdabeb2ffb0654e8d15176a">operator!=</a>(<a class="code" href="class_m_n_n_1_1_express_1_1_variable.html">Variable</a>* src, <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> dst) {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordflow">return</span> src != dst.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af995c0ee28d007cd50e927db0f9c7656">get</a>();</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;}</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="namespace_m_n_n_1_1_express.html#a509e798b78fc6746345b4de1df927656">   98</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespace_m_n_n_1_1_express.html#a509e798b78fc6746345b4de1df927656">operator&lt;</a>(<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> src, <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> dst) {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordflow">return</span> src.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af995c0ee28d007cd50e927db0f9c7656">get</a>() &lt; dst.<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af995c0ee28d007cd50e927db0f9c7656">get</a>();</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="namespace_m_n_n_1_1_express.html#a7107b2c2108bafa97d6975c88e1c2aaa">  101</a></span>&#160;<span class="keyword">typedef</span> std::vector&lt;VARP&gt; <a class="code" href="namespace_m_n_n_1_1_express.html#a7107b2c2108bafa97d6975c88e1c2aaa">VARPS</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html">  103</a></span>&#160;<span class="keyword">class </span><a class="code" href="_m_n_n_define_8h.html#a692428e2a0af8ffb79376d223a0695ab">MNN_PUBLIC</a> <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html">Variable</a> {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html">  105</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html">Info</a> {</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#a46b17b337685261a6b43ade89f1dbbbd">  106</a></span>&#160;        <a class="code" href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3c">Dimensionformat</a> order = <a class="code" href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3caf7cdcc92dac8923b43a5a9e3ca26a765">NHWC</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#aa6d9be05fd7ccf9f65d8be4a8a7e63df">  107</a></span>&#160;        <a class="code" href="namespace_m_n_n_1_1_express.html#aac9d5f0a7344063d3206a80d5b48af56">INTS</a> <a class="code" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#aa6d9be05fd7ccf9f65d8be4a8a7e63df">dim</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#ad9b0c9a7f58bfa9acb575e8ef6ac8b56">  108</a></span>&#160;        <a class="code" href="structhalide__type__t.html">halide_type_t</a> <a class="code" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#ad9b0c9a7f58bfa9acb575e8ef6ac8b56">type</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#a67f234fdcbafd734bf1bfc79e097295b">  109</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#a67f234fdcbafd734bf1bfc79e097295b">size</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#a9234ad5591a8ed3e461a99b9ef3e5b39">  110</a></span>&#160;        <span class="keywordtype">void</span>* ptr = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keywordtype">void</span> syncSize();</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    };</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keyword">const</span> std::string&amp; name() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordtype">void</span> setName(<span class="keyword">const</span> std::string&amp; name);</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html#a24e0e8a226d7720ad0fd3efc084ecc21">  115</a></span>&#160;    std::pair&lt;EXPRP, int&gt; <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html#a24e0e8a226d7720ad0fd3efc084ecc21">expr</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="keywordflow">return</span> std::make_pair(mFrom, mFromIndex);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    }</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="comment">// If compute info error, return nullptr</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keyword">const</span> Info* getInfo();</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordtype">bool</span> resize(<a class="code" href="namespace_m_n_n_1_1_express.html#aac9d5f0a7344063d3206a80d5b48af56">INTS</a> dims);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html#a703c720ae67600f1d7d31a70a8b1e25d">  122</a></span>&#160;    <span class="keyword">const</span> T* <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html#a703c720ae67600f1d7d31a70a8b1e25d">readMap</a>() {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">return</span> (<span class="keyword">const</span> T*)readInternal();</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    }</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html#a700942ec4b4fc6d89762ec8166abad44">  127</a></span>&#160;    T* <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html#a700942ec4b4fc6d89762ec8166abad44">writeMap</a>() {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="keywordflow">return</span> (T*)writeInternal();</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    }</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="comment">//Depecerate</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordtype">void</span> unMap();</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordtype">bool</span> input(<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> src);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> replace(<a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> dst, <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> src);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a> create(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> expr, <span class="keywordtype">int</span> index = 0);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keyword">static</span> std::vector&lt;VARP&gt; load(<span class="keyword">const</span> <span class="keywordtype">char</span>* fileName);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keyword">static</span> std::map&lt;std::string, VARP&gt; loadMap(<span class="keyword">const</span> <span class="keywordtype">char</span>* fileName);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keyword">static</span> std::pair&lt;std::map&lt;std::string, VARP&gt;, std::map&lt;std::string, VARP&gt;&gt; getInputAndOutput(<span class="keyword">const</span> std::map&lt;std::string, VARP&gt;&amp; allVariable);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keyword">static</span> std::vector&lt;VARP&gt; mapToSequence(<span class="keyword">const</span> std::map&lt;std::string, VARP&gt;&amp; source);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keyword">static</span> std::vector&lt;EXPRP&gt; getExecuteOrder(<span class="keyword">const</span> std::vector&lt;VARP&gt;&amp; output);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> save(<span class="keyword">const</span> std::vector&lt;VARP&gt;&amp; vars, <span class="keyword">const</span> <span class="keywordtype">char</span>* fileName);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> save(<span class="keyword">const</span> std::vector&lt;VARP&gt;&amp; vars, NetT* dest);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="comment">// Pack a few Variable to compute in one pipeline</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> prepareCompute(<span class="keyword">const</span> std::vector&lt;VARP&gt;&amp; vars);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordtype">size_t</span> linkNumber() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keyword">const</span> std::vector&lt;WeakEXPRP&gt;&amp; toExprs() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html#a3904a5444ac222a577c5e0e11ba693ad">  152</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html#a3904a5444ac222a577c5e0e11ba693ad">setExpr</a>(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> expr, <span class="keywordtype">int</span> index) {</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        mFrom = expr;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        mFromIndex = index;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html#a13a1261edade7cbb526fac10a5c4cfab">  157</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html#a13a1261edade7cbb526fac10a5c4cfab">Variable</a>(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> expr, <span class="keywordtype">int</span> index) {</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        mFrom      = expr;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        mFromIndex = index;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    }</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keywordtype">void</span>* readInternal();</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordtype">void</span>* writeInternal(<span class="keywordtype">bool</span> inform=<span class="keyword">true</span>);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordtype">void</span> informDirty();</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html#a468d0bc0f5027352921401ec143639ae">  166</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_m_n_n_1_1_express_1_1_expr.html">Expr</a>;</div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html#a9ddbd7d3b87e83dfea94e4fd581ea611">  167</a></span>&#160;    <a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html#a9ddbd7d3b87e83dfea94e4fd581ea611">mFrom</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_variable.html#ae1be6b2bf7c477f066b6eb91897bbb0f">  168</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_m_n_n_1_1_express_1_1_variable.html#ae1be6b2bf7c477f066b6eb91897bbb0f">mFromIndex</a>;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;};</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html">  171</a></span>&#160;<span class="keyword">class </span><a class="code" href="_m_n_n_define_8h.html#a692428e2a0af8ffb79376d223a0695ab">MNN_PUBLIC</a> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html">Expr</a> {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keyword">struct </span>Inside;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keyword">static</span> <a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> create(<a class="code" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html">Variable::Info</a>&amp;&amp; info);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keyword">static</span> <a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> create(<span class="keyword">const</span> OpT* op, std::vector&lt;VARP&gt; inputs, <span class="keywordtype">int</span> outputSize = 1);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keyword">static</span> <a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> create(std::pair&lt;std::shared_ptr&lt;char&gt;, <span class="keywordtype">int</span>&gt; extra, std::vector&lt;VARP&gt;&amp;&amp; inputs, <span class="keywordtype">int</span> outputSize = 1);</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a5cda67ff2ecde9b538ed25d145506641">  177</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a5cda67ff2ecde9b538ed25d145506641">create</a>(std::unique_ptr&lt;OpT&gt;&amp;&amp; op, std::vector&lt;VARP&gt; inputs, <span class="keywordtype">int</span> outputSize = 1) {</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        <span class="keywordflow">return</span> create(op.get(), inputs, outputSize);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    }</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keywordtype">void</span> setName(<span class="keyword">const</span> std::string&amp; name);</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#ab838cdec87f5f7eb7f38d3c6268d851d">  182</a></span>&#160;    <span class="keyword">const</span> Op* <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#ab838cdec87f5f7eb7f38d3c6268d851d">get</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keywordflow">return</span> mOp;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    }</div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a71fdc884203ed82891056b04e752cf15">  185</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;VARP&gt;&amp; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a71fdc884203ed82891056b04e752cf15">inputs</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <span class="keywordflow">return</span> mInputs;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    }</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#afdba0bc5d21f53727458927400c0b17b">  188</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#afdba0bc5d21f53727458927400c0b17b">outputSize</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <span class="keywordflow">return</span> mOutputNames.size();</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    }</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> replace(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> oldExpr, <a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> newExpr);</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="keywordtype">bool</span> requireInfo();</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keywordtype">void</span> visitOutputs(<span class="keyword">const</span> std::function&lt;<span class="keywordtype">bool</span>(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a>, <span class="keywordtype">int</span>)&gt;&amp; visit);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> visit(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> expr, <span class="keyword">const</span> std::function&lt;<span class="keywordtype">bool</span>(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a>)&gt;&amp; before, <span class="keyword">const</span> std::function&lt;<span class="keywordtype">bool</span>(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a>)&gt;&amp; after);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#aaf233da63cf791d0838a8d8a089b1eca">  196</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;WeakEXPRP&gt;&amp; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#aaf233da63cf791d0838a8d8a089b1eca">outputs</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keywordflow">return</span> mTo;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    }</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    ~<a class="code" href="class_m_n_n_1_1_express_1_1_expr.html">Expr</a>();</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a3e13f0d664a7791dc00e2f1b38963570">  201</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a3e13f0d664a7791dc00e2f1b38963570">visited</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keywordflow">return</span> mVisited;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    }</div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a1863ff4586ea51c7780ee0a27d079ba5">  204</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a1863ff4586ea51c7780ee0a27d079ba5">setVisited</a>(<span class="keywordtype">bool</span> visited) {</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        mVisited = visited;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    }</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a3dce22c0c4fc9645bbfe2e2b17643fab">  207</a></span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a3dce22c0c4fc9645bbfe2e2b17643fab">name</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keywordflow">return</span> mName;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    }</div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#adaae90856396c0d6534df484b6e45bd9">  210</a></span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#adaae90856396c0d6534df484b6e45bd9">outputName</a>(<span class="keywordtype">int</span> index) {</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <span class="keywordflow">return</span> mOutputNames[index];</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    }</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#ae51f88a85ff7b20420d6e5e7b4de5e97">  214</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#adb04fbbb9efda7fde86cf7c0ba8f7362">VARP::InputType</a> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#ae51f88a85ff7b20420d6e5e7b4de5e97">inputType</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mType;}</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <a class="code" href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html">Variable::Info</a>* outputInfo(<span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#ae2bb49cf82d6c48092ea301cd48df702">  216</a></span>&#160;    std::pair&lt;std::shared_ptr&lt;char&gt;, <span class="keywordtype">int</span>&gt; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#ae2bb49cf82d6c48092ea301cd48df702">extra</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        <span class="keywordflow">return</span> std::make_pair(mExtraBuffer, mOpBufferSize);</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    }</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keywordtype">bool</span> setInfoDirty();</div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#aafbb5b9c5563296013f54fb2a0e55847">  220</a></span>&#160;    std::shared_ptr&lt;Inside&gt; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#aafbb5b9c5563296013f54fb2a0e55847">inside</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="keywordflow">return</span> mInside;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    }</div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a08bd80f2ff0b8478e94b4b6f5b0e0820">  223</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a08bd80f2ff0b8478e94b4b6f5b0e0820">valid</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <span class="keywordflow">return</span> mValid;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    }</div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#aa17eb5862fdaeb19553dfd8d96a7c6de">  226</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#aa17eb5862fdaeb19553dfd8d96a7c6de">infoDirty</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <span class="keywordflow">return</span> mInfoDirty;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    }</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> _addLinkForInputs(<a class="code" href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">EXPRP</a> expr);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html">Expr</a>(<span class="keywordtype">int</span> outputSize);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#acca207de98b59d1c41e3975008706d61">  234</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_m_n_n_1_1_express_1_1_variable.html">Variable</a>;</div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a7211f169ca72e1ee9cdddf414b70e512">  235</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">VARP</a>;</div>
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#ab9ac87720d991d8d8cc91904ce001eb4">  236</a></span>&#160;    <a class="code" href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#adb04fbbb9efda7fde86cf7c0ba8f7362">VARP::InputType</a> <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#ab9ac87720d991d8d8cc91904ce001eb4">mType</a>;</div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a4c3ebc5001765af90797ff59be8ad67f">  237</a></span>&#160;    <span class="keyword">const</span> Op* <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a4c3ebc5001765af90797ff59be8ad67f">mOp</a>;</div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a0abc4820a799ec64bd7b5f2739e1a8ff">  238</a></span>&#160;    std::vector&lt;VARP&gt; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a0abc4820a799ec64bd7b5f2739e1a8ff">mInputs</a>;</div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a601c5c95fe822dfd8f4b9d471acb59ca">  239</a></span>&#160;    std::vector&lt;std::string&gt; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a601c5c95fe822dfd8f4b9d471acb59ca">mOutputNames</a>;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a0293a1cfdf1d53f8ab9e4a15469391e9">  241</a></span>&#160;    <span class="keywordtype">bool</span> mValid = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#af84d4e893f6c83458bfa04ee033f689b">  242</a></span>&#160;    <span class="keywordtype">bool</span> mInfoDirty    = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a77742c1d894d43f62db3aa0c4e346eeb">  243</a></span>&#160;    std::shared_ptr&lt;char&gt; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a77742c1d894d43f62db3aa0c4e346eeb">mExtraBuffer</a>;</div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a49426fb45ee9f943f9f8e58cbd7803d7">  244</a></span>&#160;    <span class="keywordtype">int</span> mOpBufferSize = 0;</div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a9aefad647ab321b53360454c5ec7895b">  245</a></span>&#160;    std::string <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a9aefad647ab321b53360454c5ec7895b">mName</a>;</div>
<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#ad215383905f7341ca4cc42404b1755b2">  246</a></span>&#160;    std::shared_ptr&lt;Inside&gt; mInside = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a92272f70c59de8b92fc9728ab639ba34">  247</a></span>&#160;    <span class="keywordtype">bool</span> mVisited                   = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="class_m_n_n_1_1_express_1_1_expr.html#a7bf4fa818701eca0da5733e53da50a89">  248</a></span>&#160;    std::vector&lt;WeakEXPRP&gt; <a class="code" href="class_m_n_n_1_1_express_1_1_expr.html#a7bf4fa818701eca0da5733e53da50a89">mTo</a>;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;};</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;} <span class="comment">// namespace Express</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;} <span class="comment">// namespace MNN</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* Expr_hpp */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespace_m_n_n_html"><div class="ttname"><a href="namespace_m_n_n.html">MNN</a></div><div class="ttdef"><b>Definition:</b> AutoTime.hpp:16</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_adaae90856396c0d6534df484b6e45bd9"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#adaae90856396c0d6534df484b6e45bd9">MNN::Express::Expr::outputName</a></div><div class="ttdeci">const std::string &amp; outputName(int index)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:210</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_af2bd2d64faf19ef3c485761766c99399"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af2bd2d64faf19ef3c485761766c99399">MNN::Express::VARP::VARP</a></div><div class="ttdeci">VARP(Variable *c)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:41</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a3e13f0d664a7791dc00e2f1b38963570"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a3e13f0d664a7791dc00e2f1b38963570">MNN::Express::Expr::visited</a></div><div class="ttdeci">bool visited() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:201</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_a0a99958eb20c4daf3ca8d431bf25f83b"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a0a99958eb20c4daf3ca8d431bf25f83b">MNN::Express::VARP::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const VARP &amp;var)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:66</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_a82e1a8bcf166d3dc69233900b1935f4c"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a82e1a8bcf166d3dc69233900b1935f4c">MNN::Express::VARP::VARP</a></div><div class="ttdeci">VARP(VARP &amp;&amp;var)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:53</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_a3c8c8139465203352c6c2ffc5944f1e6"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#a3c8c8139465203352c6c2ffc5944f1e6">MNN::Express::WeakEXPRP</a></div><div class="ttdeci">std::weak_ptr&lt; Expr &gt; WeakEXPRP</div><div class="ttdef"><b>Definition:</b> Expr.hpp:30</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_aa17eb5862fdaeb19553dfd8d96a7c6de"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#aa17eb5862fdaeb19553dfd8d96a7c6de">MNN::Express::Expr::infoDirty</a></div><div class="ttdeci">bool infoDirty() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:226</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_ae2bb49cf82d6c48092ea301cd48df702"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#ae2bb49cf82d6c48092ea301cd48df702">MNN::Express::Expr::extra</a></div><div class="ttdeci">std::pair&lt; std::shared_ptr&lt; char &gt;, int &gt; extra() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:216</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a77742c1d894d43f62db3aa0c4e346eeb"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a77742c1d894d43f62db3aa0c4e346eeb">MNN::Express::Expr::mExtraBuffer</a></div><div class="ttdeci">std::shared_ptr&lt; char &gt; mExtraBuffer</div><div class="ttdef"><b>Definition:</b> Expr.hpp:243</div></div>
<div class="ttc" id="astruct_m_n_n_1_1_express_1_1_variable_1_1_info_html_ad9b0c9a7f58bfa9acb575e8ef6ac8b56"><div class="ttname"><a href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#ad9b0c9a7f58bfa9acb575e8ef6ac8b56">MNN::Express::Variable::Info::type</a></div><div class="ttdeci">halide_type_t type</div><div class="ttdef"><b>Definition:</b> Expr.hpp:108</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_ae9b6d2e9cfc16074ce2f57cdd4b88e3caf7cdcc92dac8923b43a5a9e3ca26a765"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3caf7cdcc92dac8923b43a5a9e3ca26a765">MNN::Express::NHWC</a></div><div class="ttdeci">@ NHWC</div><div class="ttdef"><b>Definition:</b> Expr.hpp:32</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a4c3ebc5001765af90797ff59be8ad67f"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a4c3ebc5001765af90797ff59be8ad67f">MNN::Express::Expr::mOp</a></div><div class="ttdeci">const Op * mOp</div><div class="ttdef"><b>Definition:</b> Expr.hpp:237</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html">MNN::Express::VARP</a></div><div class="ttdef"><b>Definition:</b> Expr.hpp:33</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_executor_html"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_executor.html">MNN::Express::Executor</a></div><div class="ttdef"><b>Definition:</b> Executor.hpp:21</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_ae51f88a85ff7b20420d6e5e7b4de5e97"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#ae51f88a85ff7b20420d6e5e7b4de5e97">MNN::Express::Expr::inputType</a></div><div class="ttdeci">VARP::InputType inputType() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:214</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_aaf233da63cf791d0838a8d8a089b1eca"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#aaf233da63cf791d0838a8d8a089b1eca">MNN::Express::Expr::outputs</a></div><div class="ttdeci">const std::vector&lt; WeakEXPRP &gt; &amp; outputs() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:196</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_ae198ae95e5aa09c79959aee49265e374"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ae198ae95e5aa09c79959aee49265e374">MNN::Express::VARP::~ VARP</a></div><div class="ttdeci">~ VARP()</div><div class="ttdef"><b>Definition:</b> Expr.hpp:47</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_afdba0bc5d21f53727458927400c0b17b"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#afdba0bc5d21f53727458927400c0b17b">MNN::Express::Expr::outputSize</a></div><div class="ttdeci">int outputSize() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:188</div></div>
<div class="ttc" id="astructhalide__type__t_html"><div class="ttname"><a href="structhalide__type__t.html">halide_type_t</a></div><div class="ttdef"><b>Definition:</b> HalideRuntime.h:82</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a7bf4fa818701eca0da5733e53da50a89"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a7bf4fa818701eca0da5733e53da50a89">MNN::Express::Expr::mTo</a></div><div class="ttdeci">std::vector&lt; WeakEXPRP &gt; mTo</div><div class="ttdef"><b>Definition:</b> Expr.hpp:248</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_a7b447d01b1e70a37ea9b91f2113c3e42"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a7b447d01b1e70a37ea9b91f2113c3e42">MNN::Express::VARP::operator=</a></div><div class="ttdeci">VARP &amp; operator=(Variable *var)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:76</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_aac9d5f0a7344063d3206a80d5b48af56"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#aac9d5f0a7344063d3206a80d5b48af56">MNN::Express::INTS</a></div><div class="ttdeci">std::vector&lt; int &gt; INTS</div><div class="ttdef"><b>Definition:</b> Expr.hpp:31</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_a7e017019fb11c17138944a2ff0b0f4a9"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a7e017019fb11c17138944a2ff0b0f4a9">MNN::Express::VARP::operator-&gt;</a></div><div class="ttdeci">Variable * operator-&gt;() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:80</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_ae9b6d2e9cfc16074ce2f57cdd4b88e3cac0fe2ebb36df2d8a26b4e9a285c7b202"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3cac0fe2ebb36df2d8a26b4e9a285c7b202">MNN::Express::NC4HW4</a></div><div class="ttdeci">@ NC4HW4</div><div class="ttdef"><b>Definition:</b> Expr.hpp:32</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_variable_html_a700942ec4b4fc6d89762ec8166abad44"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_variable.html#a700942ec4b4fc6d89762ec8166abad44">MNN::Express::Variable::writeMap</a></div><div class="ttdeci">T * writeMap()</div><div class="ttdef"><b>Definition:</b> Expr.hpp:127</div></div>
<div class="ttc" id="a_m_n_n_define_8h_html_a692428e2a0af8ffb79376d223a0695ab"><div class="ttname"><a href="_m_n_n_define_8h.html#a692428e2a0af8ffb79376d223a0695ab">MNN_PUBLIC</a></div><div class="ttdeci">#define MNN_PUBLIC</div><div class="ttdef"><b>Definition:</b> MNNDefine.h:67</div></div>
<div class="ttc" id="astruct_m_n_n_1_1_express_1_1_variable_1_1_info_html_a67f234fdcbafd734bf1bfc79e097295b"><div class="ttname"><a href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#a67f234fdcbafd734bf1bfc79e097295b">MNN::Express::Variable::Info::size</a></div><div class="ttdeci">int size</div><div class="ttdef"><b>Definition:</b> Expr.hpp:109</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_ab9ac87720d991d8d8cc91904ce001eb4"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#ab9ac87720d991d8d8cc91904ce001eb4">MNN::Express::Expr::mType</a></div><div class="ttdeci">VARP::InputType mType</div><div class="ttdef"><b>Definition:</b> Expr.hpp:236</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html">MNN::Express::Expr</a></div><div class="ttdef"><b>Definition:</b> Expr.hpp:171</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a1863ff4586ea51c7780ee0a27d079ba5"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a1863ff4586ea51c7780ee0a27d079ba5">MNN::Express::Expr::setVisited</a></div><div class="ttdeci">void setVisited(bool visited)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:204</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_aafbb5b9c5563296013f54fb2a0e55847"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#aafbb5b9c5563296013f54fb2a0e55847">MNN::Express::Expr::inside</a></div><div class="ttdeci">std::shared_ptr&lt; Inside &gt; inside() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:220</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_a81f81111a22ec4b0527b8ea54cf79691"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a81f81111a22ec4b0527b8ea54cf79691">MNN::Express::VARP::operator==</a></div><div class="ttdeci">bool operator==(const VARP &amp;var)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:63</div></div>
<div class="ttc" id="astruct_m_n_n_1_1_express_1_1_variable_1_1_info_html_aa6d9be05fd7ccf9f65d8be4a8a7e63df"><div class="ttname"><a href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html#aa6d9be05fd7ccf9f65d8be4a8a7e63df">MNN::Express::Variable::Info::dim</a></div><div class="ttdeci">INTS dim</div><div class="ttdef"><b>Definition:</b> Expr.hpp:107</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_a509e798b78fc6746345b4de1df927656"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#a509e798b78fc6746345b4de1df927656">MNN::Express::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(VARP src, VARP dst)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:98</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_a152ce5be99dce88bb7ede3838075df79"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#a152ce5be99dce88bb7ede3838075df79">MNN::Express::EXPRP</a></div><div class="ttdeci">std::shared_ptr&lt; Expr &gt; EXPRP</div><div class="ttdef"><b>Definition:</b> Expr.hpp:28</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_af0b771b67ae09cd790d9b54b76dd1c28"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af0b771b67ae09cd790d9b54b76dd1c28">MNN::Express::VARP::VARP</a></div><div class="ttdeci">VARP(std::shared_ptr&lt; Variable &gt; c)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:38</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_aeb744f3b45a7111ddea24c129db9d5c6"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#aeb744f3b45a7111ddea24c129db9d5c6">MNN::Express::operator==</a></div><div class="ttdeci">bool operator==(Variable *src, VARP dst)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:92</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_variable_html_ae1be6b2bf7c477f066b6eb91897bbb0f"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_variable.html#ae1be6b2bf7c477f066b6eb91897bbb0f">MNN::Express::Variable::mFromIndex</a></div><div class="ttdeci">int mFromIndex</div><div class="ttdef"><b>Definition:</b> Expr.hpp:168</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a9aefad647ab321b53360454c5ec7895b"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a9aefad647ab321b53360454c5ec7895b">MNN::Express::Expr::mName</a></div><div class="ttdeci">std::string mName</div><div class="ttdef"><b>Definition:</b> Expr.hpp:245</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_a506c42545bdabeb2ffb0654e8d15176a"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#a506c42545bdabeb2ffb0654e8d15176a">MNN::Express::operator!=</a></div><div class="ttdeci">bool operator!=(Variable *src, VARP dst)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:95</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_variable_html_a9ddbd7d3b87e83dfea94e4fd581ea611"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_variable.html#a9ddbd7d3b87e83dfea94e4fd581ea611">MNN::Express::Variable::mFrom</a></div><div class="ttdeci">EXPRP mFrom</div><div class="ttdef"><b>Definition:</b> Expr.hpp:167</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_ae9b6d2e9cfc16074ce2f57cdd4b88e3c"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3c">MNN::Express::Dimensionformat</a></div><div class="ttdeci">Dimensionformat</div><div class="ttdef"><b>Definition:</b> Expr.hpp:32</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_ab3e50e1d0c3438ebdd7547ec5e6513c3"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#ab3e50e1d0c3438ebdd7547ec5e6513c3">MNN::Express::VARP::mContent</a></div><div class="ttdeci">std::shared_ptr&lt; Variable &gt; mContent</div><div class="ttdef"><b>Definition:</b> Expr.hpp:90</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_a178e41f8715faf3c2a71b84e0b3b3f5f"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a178e41f8715faf3c2a71b84e0b3b3f5f">MNN::Express::VARP::VARP</a></div><div class="ttdeci">VARP(const VARP &amp;var)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:50</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_variable_html"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_variable.html">MNN::Express::Variable</a></div><div class="ttdef"><b>Definition:</b> Expr.hpp:103</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_a6f5e1654bdec45a55ccacf93ee730a68"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a6f5e1654bdec45a55ccacf93ee730a68">MNN::Express::VARP::operator&lt;=</a></div><div class="ttdeci">bool operator&lt;=(const VARP &amp;var)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:69</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a5cda67ff2ecde9b538ed25d145506641"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a5cda67ff2ecde9b538ed25d145506641">MNN::Express::Expr::create</a></div><div class="ttdeci">static EXPRP create(std::unique_ptr&lt; OpT &gt; &amp;&amp;op, std::vector&lt; VARP &gt; inputs, int outputSize=1)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:177</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_variable_html_a24e0e8a226d7720ad0fd3efc084ecc21"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_variable.html#a24e0e8a226d7720ad0fd3efc084ecc21">MNN::Express::Variable::expr</a></div><div class="ttdeci">std::pair&lt; EXPRP, int &gt; expr() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:115</div></div>
<div class="ttc" id="astruct_m_n_n_1_1_express_1_1_variable_1_1_info_html"><div class="ttname"><a href="struct_m_n_n_1_1_express_1_1_variable_1_1_info.html">MNN::Express::Variable::Info</a></div><div class="ttdef"><b>Definition:</b> Expr.hpp:105</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_a7107b2c2108bafa97d6975c88e1c2aaa"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#a7107b2c2108bafa97d6975c88e1c2aaa">MNN::Express::VARPS</a></div><div class="ttdeci">std::vector&lt; VARP &gt; VARPS</div><div class="ttdef"><b>Definition:</b> Expr.hpp:101</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_af995c0ee28d007cd50e927db0f9c7656"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#af995c0ee28d007cd50e927db0f9c7656">MNN::Express::VARP::get</a></div><div class="ttdeci">Variable * get() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:44</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a71fdc884203ed82891056b04e752cf15"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a71fdc884203ed82891056b04e752cf15">MNN::Express::Expr::inputs</a></div><div class="ttdeci">const std::vector&lt; VARP &gt; &amp; inputs() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:185</div></div>
<div class="ttc" id="anamespace_m_n_n_1_1_express_html_ae9b6d2e9cfc16074ce2f57cdd4b88e3ca43885258fecf8a3ae395776d5b23e278"><div class="ttname"><a href="namespace_m_n_n_1_1_express.html#ae9b6d2e9cfc16074ce2f57cdd4b88e3ca43885258fecf8a3ae395776d5b23e278">MNN::Express::NCHW</a></div><div class="ttdeci">@ NCHW</div><div class="ttdef"><b>Definition:</b> Expr.hpp:32</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a08bd80f2ff0b8478e94b4b6f5b0e0820"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a08bd80f2ff0b8478e94b4b6f5b0e0820">MNN::Express::Expr::valid</a></div><div class="ttdeci">bool valid() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:223</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_aeccf9d2e356cce11af54745978672036"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#aeccf9d2e356cce11af54745978672036">MNN::Express::VARP::operator=</a></div><div class="ttdeci">VARP &amp; operator=(const VARP &amp;var)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:72</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_a655f4c2112705d0d96e049db4b2614e3"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#a655f4c2112705d0d96e049db4b2614e3">MNN::Express::VARP::VARP</a></div><div class="ttdeci">VARP()</div><div class="ttdef"><b>Definition:</b> Expr.hpp:35</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_ab838cdec87f5f7eb7f38d3c6268d851d"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#ab838cdec87f5f7eb7f38d3c6268d851d">MNN::Express::Expr::get</a></div><div class="ttdeci">const Op * get() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:182</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_variable_html_a13a1261edade7cbb526fac10a5c4cfab"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_variable.html#a13a1261edade7cbb526fac10a5c4cfab">MNN::Express::Variable::Variable</a></div><div class="ttdeci">Variable(EXPRP expr, int index)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:157</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a0abc4820a799ec64bd7b5f2739e1a8ff"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a0abc4820a799ec64bd7b5f2739e1a8ff">MNN::Express::Expr::mInputs</a></div><div class="ttdeci">std::vector&lt; VARP &gt; mInputs</div><div class="ttdef"><b>Definition:</b> Expr.hpp:238</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a3dce22c0c4fc9645bbfe2e2b17643fab"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a3dce22c0c4fc9645bbfe2e2b17643fab">MNN::Express::Expr::name</a></div><div class="ttdeci">const std::string &amp; name() const</div><div class="ttdef"><b>Definition:</b> Expr.hpp:207</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_expr_html_a601c5c95fe822dfd8f4b9d471acb59ca"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_expr.html#a601c5c95fe822dfd8f4b9d471acb59ca">MNN::Express::Expr::mOutputNames</a></div><div class="ttdeci">std::vector&lt; std::string &gt; mOutputNames</div><div class="ttdef"><b>Definition:</b> Expr.hpp:239</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_variable_html_a703c720ae67600f1d7d31a70a8b1e25d"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_variable.html#a703c720ae67600f1d7d31a70a8b1e25d">MNN::Express::Variable::readMap</a></div><div class="ttdeci">const T * readMap()</div><div class="ttdef"><b>Definition:</b> Expr.hpp:122</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_v_a_r_p_html_adb04fbbb9efda7fde86cf7c0ba8f7362"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_v_a_r_p.html#adb04fbbb9efda7fde86cf7c0ba8f7362">MNN::Express::VARP::InputType</a></div><div class="ttdeci">InputType</div><div class="ttdef"><b>Definition:</b> Expr.hpp:83</div></div>
<div class="ttc" id="aclass_m_n_n_1_1_express_1_1_variable_html_a3904a5444ac222a577c5e0e11ba693ad"><div class="ttname"><a href="class_m_n_n_1_1_express_1_1_variable.html#a3904a5444ac222a577c5e0e11ba693ad">MNN::Express::Variable::setExpr</a></div><div class="ttdeci">void setExpr(EXPRP expr, int index)</div><div class="ttdef"><b>Definition:</b> Expr.hpp:152</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
